I would expect several compile errors from that, e.g.,
Code:
MODE:strict errors C++ C++0x_extensions
"ComeauTest.c", line 13: error: expected an expression
myass = 1 + 1 =;
^
"ComeauTest.c", line 13: error: expression must be a modifiable lvalue
myass = 1 + 1 =;
^
"ComeauTest.c", line 15: error: expected a ";" (perhaps on the previous statement)
int dooshbag 2 + 2 =;
^
"ComeauTest.c", line 17: error: invalid specifier outside a class declaration
virtual bool myass *dooshbag;
^
"ComeauTest.c", line 17: error: "myass" has already been declared in the current
scope
virtual bool myass *dooshbag;
^
"ComeauTest.c", line 17: error: expected a ";" (perhaps on the previous statement)
virtual bool myass *dooshbag;
^
"ComeauTest.c", line 11: warning: variable "myass" was set but never used
int myass;
^
"ComeauTest.c", line 15: warning: variable "dooshbag" was declared but never
referenced
int dooshbag 2 + 2 =;
^
"ComeauTest.c", line 17: warning: variable "myass" was declared but never referenced
virtual bool myass *dooshbag;
^
6 errors detected in the compilation of "ComeauTest.c".